status_code.go 307 B

1234567891011
  1. package gofakeit
  2. // SimpleStatusCode will generate a random simple status code
  3. func SimpleStatusCode() int {
  4. return getRandIntValue([]string{"status_code", "simple"})
  5. }
  6. // StatusCode will generate a random status code
  7. func StatusCode() int {
  8. return getRandIntValue([]string{"status_code", "general"})
  9. }