POST api/Oturum/HataOlustu

Hata oluşması durumunda devreye girecek işlevdir.

Request Information

URI Parameters

None.

Body Parameters

Hata tipine göre benzersiz bir anahtar döner. Bu anahtarın kullanıcı tarafından anlaşılabilir mesaja dönüştürülerek gösterilmesi uygun olur.

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

isError = true => ErrorMessage içinde hata anahatarı bulunur.

ResultDTO
NameDescriptionTypeAdditional information
isError

Hata var mı

boolean

None.

ErrorMessage

Varsa hata mesajı

string

None.

Response Formats

application/json, text/json

Sample:
{
  "isError": true,
  "ErrorMessage": "sample string 2"
}