@@ -0,0 +1,2946 @@
+/*%0A * Copyright 2015 Hiroki Uchida%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except%0A * in compliance with the License. You may obtain a copy of the License at%0A * %0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software distributed under the License%0A * is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express%0A * or implied. See the License for the specific language governing permissions and limitations under%0A * the License.%0A */%0A%0Apackage dmm4j.http;%0A%0A/**%0A * @author nikuyoshi%0A */%0Apublic interface HttpResponseCode %7B%0A  int OK = 200;// OK: Success!%0A  int MULTIPLE_CHOICES = 300;//%0A  int FOUND = 302;//%0A  int NOT_MODIFIED = 304;// Not Modified: There was no new data to return.%0A  int BAD_REQUEST = 400;// Bad Request: The request was invalid. An accompanying error message will%0A                        // explain why. This is the status code will be returned during rate%0A                        // limiting.%0A  int UNAUTHORIZED = 401;// Not Authorized: Authentication credentials were missing or incorrect.%0A  int FORBIDDEN = 403;// Forbidden: The request is understood, but it has been refused. An%0A                      // accompanying error message will explain why.%0A  int NOT_FOUND = 404;// Not Found: The URI requested is invalid or the resource requested, such as%0A                      // a user, does not exists.%0A  int NOT_ACCEPTABLE = 406;// Not Acceptable: Returned by the Search API when an invalid format is%0A                           // specified in the request.%0A  int ENHANCE_YOUR_CLAIM = 420;// Enhance Your Calm: Returned by the Search and Trends API when you%0A                               // are being rate limited. Not registered in RFC.%0A  int UNPROCESSABLE_ENTITY = 422;// Returned when an image uploaded to POST%0A                                 // account/update_profile_banner is unable to be processed.%0A  int TOO_MANY_REQUESTS = 429;// Returned in API v1.1 when a request cannot be served due to the%0A                              // application's rate limit having been exhausted for the resource.%0A                              // See Rate Limiting in API v1.1.%0A  int INTERNAL_SERVER_ERROR = 500;// Internal Server Error: Something is broken. Please post to the%0A                                  // group so the Dmm team can investigate.%0A  int BAD_GATEWAY = 502;// Bad Gateway: Dmm is down or being upgraded.%0A  int SERVICE_UNAVAILABLE = 503;// Service Unavailable: The Dmm servers are up, but overloaded with%0A                                // requests. Try again later. The search and trend methods use this%0A                                // to indicate when you are being rate limited.%0A  int GATEWAY_TIMEOUT = 504;// The Dmm servers are up, but the request couldn't be serviced due to%0A                            // some failure within our stack. Try again later.%0A%7D%0A

Add HttpResponseCode