Forum Discussion

thilo's avatar
thilo
Mentor
11 years ago

Is there a list of REST API Error Codes

We're currently implementing a lithium community in several third party systems using the lithium REST API.

 

One thing we noticed was when an API call fails we recieve a corresponding error code, e.g.:

When the user does not exist

/restapi/vc/users/sso_id/{sso_id}

 returns a 101 error code. We couldn't find a list of these error codes when looking through the API documentation.

 

Is there a list of all possible error codes per API call?

  • Hi, 

     

    Unfortunately, we do not have Error codes documented for version 1 of our API. But we heard this feedback and made sure that we have it in our upcoming version of Rest api.

     

    Regards,
    Chhama

3 Replies

  • Hi, 

     

    Unfortunately, we do not have Error codes documented for version 1 of our API. But we heard this feedback and made sure that we have it in our upcoming version of Rest api.

     

    Regards,
    Chhama

  • gmancero's avatar
    gmancero
    Contributor
    11 years ago

    Hi ChhamaJ,

    I was also looking for a list of API error codes.  A regular member (not admin) in one of our communities has encountered the following error. I have identified the message that she was trying to reply to but I don't undertand the error log. 

                 [LithiumApiService] service error 100 on api call:/restapi/vc/messages/id/128504/reply

     

    Could you please help me with this?

     

    Thanks,

    G

     

  • thilo's avatar
    thilo
    Mentor
    11 years ago

    What we found out until now are the following error codes:

     

    101: Not found

    303: Forbidden

    502: Invalid path

     

    But I've never seen a 100 error code.