Top "Validation" questions

Validation is used to check data to make sure it fits whatever required specifications are set for it.

What's an appropriate HTTP status code to return by a REST API service for a validation failure?

I'm currently returning 401 Unauthorized whenever I encounter a validation failure in my Django/Piston based REST API application. Having had …

validation rest http-status-codes
Easy way to test a URL for 404 in PHP?

I'm teaching myself some basic scraping and I've found that sometimes the URL's that I feed into my code return 404, …

php http validation http-headers http-status-code-404
Email Address Validation for ASP.NET

What do you use to validate an email address on a ASP.NET form. I want to make sure that …

asp.net validation email
What is a regular expression which will match a valid domain name without a subdomain?

I need to validate a domain name: google.com stackoverflow.com So a domain in its rawest form - not …

regex validation domain-name
Tool to generate JSON schema from JSON data

We have this json schema draft. I would like to get a sample of my JSON data and generate a …

json validation reflection jsonschema
How to get old Value with onchange() event in text box

I have a text Box and a Value poplulated in it when page loads. Now If user chanegs any thing …

javascript html validation
Radio button validation in javascript

Need to validate a radio button input, i.e. when submit button is pressed and no radio buttons have been …

javascript validation client-side-validation
Validating IPv4 addresses with regexp

I've been trying to get an efficient regex for IPv4 validation, but without much luck. It seemed at one point …

regex validation ip-address ipv4 grep
show validation error messages on submit in angularjs

I have a form which need to show validation error messages if clicked submit. Here is a working plunker <…

javascript validation angularjs
How to set HTML5 required attribute in Javascript?

I am trying to mark a text input box as required in Javascript. <input id="edName" type="text" id="…

javascript html validation