Check out example codes for "500 html error". It will help you in understanding the concepts better.

Code Example 1

500 - Internal Server Error server error response code indicates that
	  the server encountered an unexpected condition that prevented
      it from fulfilling the request. This error response is a generic
      "catch-all" response.

Learn ReactJs, React Native from akashmittal.com