Response Codes of our Vehicle Information API :
A) 200 OK (Success)
When entered RC number is valid RC number,
Example : “RJ14TD2823”
Response :
{
"message": "Vehicle Found",
"state_cd": "RJ",
"state_name": "Rajasthan",
......
......
}
B) 400 (Bad request)
When entered RC number is incorrect,
Example : “abc” or "123"
Response :
{
"status": "failed",
"message": "regn_no parameter format is wrong or invalid."
}
C) 206 (Partial Content)
When the entered RC number has no records in the VAHAN database,
Example : “GJ01WJ0137” or “GJ01WJ0200”
Response :
{
"status": "failed",
"message": "No Record Found"
}
D) 500 (Internal Server Error)
When RTO databases are facing downtimes, In case RTO databases are facing downtimes the usually come back up within a few hours.
Response :
{
"status":"failed"
"message":"Internal Server Error - Source under maintenance, Please try after sometime"
}
E) 429 (Too many requests)
When number of requests exceed the rate limit,
Example : More than the given requests pre second
Response :
{
message: "You have exceeded the rate limit per minute for your plan, Plan-Name, by the API provider"
}