STOP RETURNING "Error" and an error message people! You need an HTTP status code on EVERY response, preferably the FIRST response. All API result keys should be LOWER case!

This commit is contained in:
Lucas Nicodemus 2011-09-05 11:33:33 -06:00
parent c97ff36b73
commit cc60099091

View file

@ -180,7 +180,8 @@ namespace TShockAPI {
if (ip == null && name == null)
{
returnBlock.Add("Error", "Required parameter missing.");
returnBlock.Add("status", "400");
returnBlock.Add("error", "Required parameters were missing from this API endpoint.");
return returnBlock;
}