10. فیرستیبه مربوط خطای ازRESTfulبیانشده.است
DecriptionMessageCode
Response to a successful REST API action.
The HTTP method can be GET, POST, PUT,
PATCH or DELETE.
OK200
The request has been fulfilled and resource
created. A URI for the created resource is
returned in the Location header.
Created201
The request has been accepted for
processing, but processing is not yet
complete.
Accepted202
Permanent redirection.Moved Permanently301
Caching related response that returned when
the client has the same copy of the resource
as the server.
Not Modified304
Temporary redirection of resource.Temporary Redirect307
The request is malformed, such as message
body format error.
Bad Request
400
Wrong or no authentication ID/password
provided.
Unauthorized401
It's used when the authentication succeeded
but authenticated user doesn't have
permission to the request resource.
Forbidden403
When a non-existent resource is requested.
Not Found
404
The error for an unexpected HTTP method.
For example, the REST API is expecting
HTTP GET, but HTTP PUT is used.
Method Not
Acceptable405
The client presented a content type in the
Accept header which is not supported by the
server API.
Unacceptable
406
Use it to signal that the request size exceeded
the given limit e.g. regarding file uploads.
Payload too large413
The requested content type is not supported
by the REST service.
Unsupported Media
Type415
The error is used when there may be DOS
attack detected or the request is rejected due
to rate limiting.
Too Many Requests
429
An unexpected condition prevented the
server from fulfilling the request. Be aware
that the response should not reveal internal
Internal Server Error
500
11. information that helps an attacker, e.g.
detailed error messages or stack traces.
The REST service does not implement the
requested operation yet.
Not Implemented
501
The REST service is temporarily unable to
process the request. Used to inform the client
it should retry at a later time.
Service Unavailable
503
دسترسی حداقل سیاست
دسااترساای مجوزهای9
پیشفرضساارویسمیبایدحداقلیباشااد؛بهعبارتدیگر ی،مادامیکهکاربرAPIنیازبهمجوز
ایاخاص،نداردلزومیبهاهاعرضآناتانیسچراکههرچهمجوزهای ارویساساتریابیشاتهاداش،اداباشاحتمالبروزرفتاری
غیرقابلانتظارازآنبیشترخواهدشد.
رد سیاست اعمال10
کردنپیشفرض
هر به کاربران دساترسای ساطسارویسایپیش صاورت به سارور سامت درباشاد مسادود فرض.مجوز نیاز صاورت در
برای دسترسیخاص کاربر.شود صادر
از استفاده عدمدادههایکش11
هویت احراز در
َشک دیتای مبنای بر نباید هرگز سرویسدسترسی سط شدهکند مدیریت را ها.
عبور رمز سازی هم در
پسسازی درهم از12
کلیهاطالعاتحساسکاربرانهمچونپسوردهایش،میتواناینتضمینراایجادکردکهاگربنا
بههردلیلیاتماایساس،گرفت قرار خطر معرض دردادههایکاربرانناخواناخواهندبوداو حیاتی و ایااخصاش اطالعاتی و
فاشنمیشود.
گرفتن نظر درTimestampارسال حین دردرخواست
سااارویس وب روی اسااات ممکن که حمالتی انواع از یکیگردد ِعمالا هاBrute Forceافزودن منظور به که اسااات
یکالیهامنیتیبهوباارویساسخودمیتواندرکلیهااتادرخواسهایک ازTimestampاین افزودن با .نمود ااتفادهااس
9
permission
10
Deny
11
chash
12
hash